package rpc.core;

import org.apache.commons.lang3.StringUtils;

/*********
 *
 *
 *@author 197
 *@date 2020/6/19 14:35
 *
 **/


public class RpcData {

  private static String appName = "default";

  public static String getAppName() {
    return RpcData.appName;
  }

  public static void setAppName(String appName) {
    if (StringUtils.isBlank(RpcData.appName) || "default".equalsIgnoreCase(appName)) {
      throw new RuntimeException("RpcData.appName is not null");
    }
    RpcData.appName = appName;
  }
}
